<?php
/**
 * 文件上传异常
 */
namespace app\common\exception;

class Upload extends Base
{
    const E_UPLOAD_ERROR = '20001';
   	const E_SIZE_TOO_BIG = '20002';
   	const E_EXT_ERROR    = '20003';
   	const E_FILE_EMPTY   = '20004';
    public static $messageList = [
        self::E_UPLOAD_ERROR => '文件上传失败',
        self::E_SIZE_TOO_BIG => '%s太大',
        self::E_EXT_ERROR    => '%s扩展名非法',
        self::E_FILE_EMPTY   => '文件内容为空',
    ];
}